package com.techsoul.module.pms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.techsoul.module.pms.pojo.entity.TbWmsLocation;
import com.techsoul.module.pms.pojo.param.TbWmsLocationSaveParam;
import com.techsoul.module.pms.pojo.param.TbWmsLocationSearchParam;
import com.techsoul.module.pms.pojo.vo.TbWmsLocationVo;
import com.techsoul.module.pms.pojo.vo.TbWmsMaterialReceiptLineVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 库区 Service接口
 * 
 * @author liuen
 * @date 2022-01-25
 */
public interface ITbWmsLocationService {

    /**
     * 新增
     * @param params
     * @return
     */
    String insert(TbWmsLocationSaveParam params);
    String inWareHouse(String id);
    String outWareHouse(String id);

    String inLoc(TbWmsLocationSaveParam params);

    String inLoc(TbWmsLocation tbWmsLocation, TbWmsMaterialReceiptLineVo TbWmsMaterialReceiptLineVo);
    String autoWarehouseDeposit(String locationNo,String inboundOrderNo);
    String autoWarehouseFetch(String locationNo,String orderNo);
    /**
     * 删除
     * @param id
     * @return
     */
    Integer delete(String id);

    /**
     * 批量删除
     * @param idList
     */
    Integer batchDelete(List<String> idList);

    /**
     * 修改
     * @param params
     * @return
     */
    Integer update(TbWmsLocationSaveParam params);

    /**
     * 详情
     * @param id
     * @return
     */
    TbWmsLocationVo findById(String id);

    /**
     * 列表
     * @param params
     * @return
     */
    List<TbWmsLocationVo> findAll(TbWmsLocationSearchParam params);

    /**
     * 列表-分页
     * @param params
     * @param current
     * @param pageSize
     * @return
     */
    IPage<TbWmsLocationVo> findAll(TbWmsLocationSearchParam params, Integer current, Integer pageSize);
    /**
     * 导入
     * @param file
     * @return
     */
    String importData(String customerNo, MultipartFile file);
}
